package com.tanhua.dubbo.mappers;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tanhua.model.domain.UserInfo;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
@Mapper
public interface UserInfoMapper extends BaseMapper<UserInfo> {
    //分页查找方法
    @Select(
            "select info.* from tb_user_info info,tb_black_list list where info.id=list.black_user_id and list.user_id=#{userId}"
    )
    Page<UserInfo> findBackList(Page pages, Long userId);
}
